package com.example.framwork.code;

/**
 * @author Sheeper
 * @date 2018/5/7.
 * 定义状态
 */
public class CodeConst {

    public static final int PARAM_ERROR = 100;

    public static final int SUCCESS = 0;

    public static final int REDIRECT = 2;

    public static final int FAILED = 1;

    public static final int NOT_LOGIN = 300;

    public static final int LOGIN_FAILED = 301;

    public static final int NO_PERMISSION = 302;

    public static final int NOT_SUPPORT = 405;

    public static final int INTERNAL_ERROR = 500;

    public static final int RELATED_ERROR = 600;

    public static final int NOT_BIND = 601;

    public static final int UNKNOWN_ERROR = 900;

    public static final int NOT_IN_OPEN_TIME = 1000;

    public static final int NOT_MATCH_RESERVE_RULE = 1001;

    /**
     * 业务错误
     */
    public static final int SYSTEM_ERROR = 1002;

    /**
     * 未参加活动
     */
    public static final int NOT_JOIN = 1003;

    /**
     * 用户已签到
     */
    public static final int USER_ALREADY_SIGNED = 10001;

    /**
     * 当前卡号不存在
     */
    public static final int USER_INFO_NOT_EXIST = 10002;

    /**
     * 用户被禁用
     */
    public static final int USER_FORBIDDEN = 10003;

    /**
     * 获取活动相关信息失败
     */
    public static final int ACTIVITY_INFO_GET_FAILED = 10004;

    /**
     * 用户没有正在生效的预约
     */
    public static final int NO_EFFECT_RESERVE = 10005;

    /**
     * 用户不在指定名单中
     */
    public static final int NOT_ON_THE_LIST = 10006;

    /**
     * 考研座位不在开放时间内
     */
    public static final int PSG_NOT_IN_OPEN_TIME = 10007;

    /**
     * 用户需要修改密码
     */
    public static final int CHANGE_PASSWORD = 10008;

    /**
     * 预约超时
     */
    public static final int RESERVE_TIMEOUT = 10009;

    /**
     * 设备预约间间隔
     */
    public static final int DEVICE_RESERVE_INTERVAL_ERROR = 10010;

    public static final int USER_HAVE_EFFECT_RESERVE = 10011;
}
